package com.pzb.common.core.domain.model;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 小程序用户对象 wechat_user
 * 
 * @author Mr_Wu
 * @date 2022-01-12
 */
public class WechatUser implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 编号 */
    private Long id;

    /** 商户id */
    private String extAppid;

    /** $column.columnComment */
    private String openid;

    /** $column.columnComment */
    private String sessionKey;

    /** 是否允许分销:0为不允许，1为允许 */
    private Integer allowDistribution;

    /** 介绍人，即分享的用户 */
    private String introducer;

    /** 联系电话 */
    private String phone;

    /** 昵称 */
    private String nickName;

    /** 性别 */
    private Integer gender;

    /** 国家 */
    private String country;

    /** 省 */
    private String province;

    /** 市 */
    private String city;

    private String avatarUrl;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setExtAppid(String extAppid) 
    {
        this.extAppid = extAppid;
    }

    public String getExtAppid() 
    {
        return extAppid;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public void setSessionKey(String sessionKey)
    {
        this.sessionKey = sessionKey;
    }

    public String getSessionKey() 
    {
        return sessionKey;
    }
    public void setAllowDistribution(Integer allowDistribution) 
    {
        this.allowDistribution = allowDistribution;
    }

    public Integer getAllowDistribution() 
    {
        return allowDistribution;
    }
    public void setIntroducer(String introducer) 
    {
        this.introducer = introducer;
    }

    public String getIntroducer() 
    {
        return introducer;
    }
    public void setPhone(String phone) 
    {
        this.phone = phone;
    }

    public String getPhone() 
    {
        return phone;
    }
    public void setNickName(String nickName) 
    {
        this.nickName = nickName;
    }

    public String getNickName() 
    {
        return nickName;
    }
    public void setGender(Integer gender)
    {
        this.gender = gender;
    }

    public Integer getGender()
    {
        return gender;
    }
    public void setCountry(String country) 
    {
        this.country = country;
    }

    public String getCountry() 
    {
        return country;
    }
    public void setProvince(String province) 
    {
        this.province = province;
    }

    public String getProvince() 
    {
        return province;
    }
    public void setCity(String city) 
    {
        this.city = city;
    }

    public String getCity() 
    {
        return city;
    }

    public String getAvatarUrl() {
        return avatarUrl;
    }

    public void setAvatarUrl(String avatarUrl) {
        this.avatarUrl = avatarUrl;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("extAppid", getExtAppid())
            .append("openid", getOpenid())
            .append("sessionKey", getSessionKey())
            .append("allowDistribution", getAllowDistribution())
            .append("introducer", getIntroducer())
            .append("phone", getPhone())
            .append("nickName", getNickName())
            .append("gender", getGender())
            .append("country", getCountry())
            .append("province", getProvince())
            .append("city", getCity())
            .toString();
    }
}
